package servidorActualizaciones;

import java.io.FileInputStream;
import java.io.IOException;
import java.net.ServerSocket;

import util.SocketManager;

public class TCPservAct {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		ServerSocket server = new ServerSocket(6960);
		SocketManager sm = new SocketManager(server.accept());
		byte[]buffer = new byte[1024];
		FileInputStream fichero = new FileInputStream("c:/hola.txt");
		int c = fichero.read(buffer);
		sm.Escribir(buffer, c);
		
	}

}
